/*
 * demo01.cpp
 *
 *  Created on: 2019��10��12��
 *      Author: Administrator
 */
#include <iostream>
using namespace std;
//#include "mathexample.h";
//#include "file1.h";
//#include "file2.h";
//extern bool isUpperCase(char);
/*
#include "factorial.h";
#include "power.h";
*/

/**
 * ��n!
 */
/*double factorial(int n){
	double f=1;
	for(int i=2;i<=n;i++){
		f*=i;
	}
	return f;
}*/
/**
 * �ж��Ƿ�Ϊ�����ַ�
 */
/*bool isDigitalChar(char m){
	if(m>='0' && m<='9'){
		return true;
	}else{
		return false;
	}
}*/
int main(){
	/*int x;
	cout<<'please input a num:';
	cin>>x;
	int f=8;
	f=factorial(x);
	cout<<x<<"�Ľ׳�Ϊ:"<<f<<endl;*/
	/*cout<<"����һ���ַ�:";
	char ch;
	cin>>ch;
	cout<<ch<<"�Ǵ�д��ĸ�� "<<isUpperCase(ch);//�������*/
	/*int n;
	cin>>n;
	cout<<n<<"�Ľ׹�Ϊ:"<<factorial(n)<<endl;
	double d;
	cin>>d;
	cout<<d<<"��"<<n<<"�η�Ϊ"<<power(d,n)<<endl;
	return 0;*/
	/*cout<<math::global<<endl;
	cout<<math::add(10,20)<<endl;
	cout<<math::factorial(5);*/

	int i=30;
	cout<<"&i="<<&i<<endl;//���ص�ַ
	cout<<"i="<<i<<endl;

	int *pi=&i;  //ָ�������������� �����ڴ�ĵ�ַ���
	cout<<"*pi="<<*pi<<endl;

	/*char a,*pa;
	a=10;
	pa=&a;
	*pa=20;
	cout<<a<<" "<<*pa<<endl;*/

	int **ppi=&pi;
	cout<<"**ppi="<<**ppi<<endl;

	return 0;

}
